from fastapi import APIRouter, Depends
from sqlalchemy.ext.asyncio import AsyncSession

from price_analysis.core.models import aux_db_helper
from . import schemas
from . import crud

router = APIRouter(tags=["guides"])


@router.get("/section-types/", response_model=list[schemas.Section])
async def get_section_types(
    session: AsyncSession = Depends(aux_db_helper.get_async_session),
):
    return await crud.get_types(session=session)
